import itertools

x = 10
repeat_x = itertools.repeat(x, 3)  # 创建一个重复迭代器，重复3次元素x

for element in repeat_x:
    print(element)